government = feudal_monarchy-lowest
aristocracy_plutocracy = -4
centralization_decentralization = 2
innovative_narrowminded = 2
mercantilism_freetrade = -5
offensive_defensive = -2
land_naval = 1
quality_quantity = 3
serfdom_freesubjects = -5
primary_culture = yamato
religion = shinto
technology_group = chinese
capital = 1017	# Nagato

1000.1.1 = { set_country_flag = emerging_middle_class }
1000.1.1 = { set_country_flag = limited_contact }
1000.1.1 = { set_country_flag = opening_society }
1000.1.1 = { set_country_flag = open_society }

1000.1.1 = { set_country_flag = idea_shrewd_commerce_practise }
1000.1.1 = { set_country_flag = idea_grand_army }
1000.1.1 = { set_country_flag = idea_national_trade_policy }

1000.1.1 = { set_country_flag = mixed_country }

1336.1.1 = { set_country_flag = northern_court_supporter } #Sided with Ashikaga in 1336
1336.1.1 = { set_country_flag = loyal_vassal } #An early supporter of the Ashikaga, but rebelled in 1398-1400

1356.1.1 = { 
	monarch = { 
		name = " "
		adm = 6 #Added Buzen, Izumi and Kii to Ouchi lands, but lost them when he rebelled
		dip = 7 #many allies among the pirates and other western warlords (Otomo, plus constables of Aki, Bizen, Nagato, Suo)
		mil = 6 #rebelled against the shogun but was defeated
		}
}
1398.1.1 = { set_country_flag = disloyal_vassal clr_country_flag = loyal_vassal } 
1400.1.15 = { #Yoshihiro committed suicide as his town burned around him under an attack by the kanrei in mid-January
	monarch = {
		name = " " #Unknown death date
		adm = 4
		dip = 4
		mil = 4
	}
}
1401.1.1 = {
	monarch = { 
		name = " "
		ADM = 4
		DIP = 4
		MIL = 6
		}
	}
1431.1.1 = {
	monarch = { 
		name = " "
		ADM = 4
		DIP = 4
		MIL = 5
		}
	}
1442.1.1 = {
	monarch = { 
		name = " " #Father of Masahiro
		ADM = 4
		DIP = 4
		MIL = 4
		}
	}
1465.1.1 = { 
	monarch = { 
		name = " " #Aka Ouchi Taro
		ADM = 6
		DIP = 6 #Took advantage of the political situation to dominate trade in China
		MIL = 6 #Fought on the side of the Yamana during the Onin War
		}
	leader = { name = " " type = general	rank = 0 fire = 3 shock = 3 manuever = 3 siege = 0 death_date = 1494.1.1 }
	}
1467.1.14 = { } #The Onin War begins
1492.1.1 = { government = feudal_monarchy-lower } #House code compiled
1494.1.1 = { #Ouchi Masahiro retires
	monarch = {
		name = " "
		adm = 5
		dip = 8
		mil = 7
	}
}
1528.1.1 = {
	monarch = {
		name = "Ouchi Yoshitaka"
		adm = 5
		dip = 7
		mil = 5
	}
}
1543.8.25 = { set_country_flag = tanegashima }
1551.1.1 = { set_country_flag = jesuits_arrive } #Francis Xavier was a guest of the Ouchi

1551.1.1 = {
	monarch = {
		name = "Ouchi Yoshinaga"
		adm = 5
		dip = 5
		mil = 5
	}
}

